﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DiplomaWeb.Models.Account.LogOnViewModel>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%:AccountStrings.LoginTitle%>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <span class="titletext"><%:AccountStrings.Login%></span>
    <p>
       <%:AccountStrings.Enter%>
    </p>

    <%
        using (Html.BeginForm())
        {%>
        <%:Html.ValidationSummary(true, AccountStrings.NotLogged)%>
        <div>
            <fieldset>
                
                <div class="editor-label">
                    <%:AccountStrings.Email%>
                </div>
                <div class="editor-field">
                    <%:Html.TextBoxFor(m => m.UserName)%>
                    <%:Html.ValidationMessageFor(m => m.UserName)%>
                </div>
                
                <div class="editor-label">
                    <%:AccountStrings.Password%>
                </div>
                <div class="editor-field">
                    <%:Html.PasswordFor(m => m.Password)%>
                    <%:Html.ValidationMessageFor(m => m.Password)%>
                </div>
                
                <p>
                    <input type="submit" value="<%:SharedStrings.Login%>" />
                </p>
            </fieldset>
        </div>
    <%
        }%>
</asp:Content>
